package com.dong.bean;


import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <h1></h1>
 *
 * @author : dzj
 * @create: 2020-04-29 09:57
 */
@Setter
@Getter
@Component
@Slf4j
public class Cat {

    @Autowired
    private Dog dog;
    public Cat(Dog dog) {
        this.dog = dog;
    }

    public Cat() {
        log.info("cat is construct ... ");
    }
}
